import { createRouter, createWebHistory } from "vue-router";
import Happy from "@/views/Happy.vue";
import Hellow from "@/views/Hellow.vue";
import Baby from "@/views/Baby.vue";
import User from "@/views/User.vue";
export const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/Happy',
      component:Happy
    },
    {
      path:'/User/:id',
      component:User,
      children:[
        {
          path:'Baby',
          component:Baby
        }
      ]
    },
    {
      path:'/Hellow',
      component:Hellow, 
      children:[
        {
          path:'Baby',
          component:Baby
        }
      ]
    }
  ]
})